package com.mes.biz.service;

import com.github.pagehelper.PageInfo;
import com.mes.biz.domain.BizOrder;
import com.mes.biz.domain.BizOrderProcessRecord;
import com.mes.biz.domain.BizProductionOrder;
import com.mes.biz.domain.vo.OrderTrackingRecord;
import com.mes.biz.domain.vo.PieceProductionRecordVo;
import com.mes.biz.domain.vo.ProcessRecordWithOrder;
import com.mes.common.core.service.BaseService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工序完成记录Service接口
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
public interface BizOrderProcessRecordService extends BaseService<BizOrderProcessRecord> {

    public boolean updateBizOrderProcessRecord(BizOrderProcessRecord bizOrderProcessRecord);

    public boolean findInfo(BizProductionOrder bizProductionOrder);

    public boolean addRecord(BizOrderProcessRecord bizOrderProcessRecord, String userId);

    public List<BizOrderProcessRecord> appletList(BizOrderProcessRecord bizOrderProcessRecord, String userId);

    public boolean deleteByOrderId(String orderId);

    public boolean deleteByOrderProductId(String orderProductId);


//    public PageInfo<ProcessRecordWithOrder> pieceProductionList(BizOrderProcessRecord bizOrderProcessRecord);
//
//    public List<ProcessRecordWithOrder> exportList(BizOrderProcessRecord bizOrderProcessRecord);

    public List<BizOrderProcessRecord> getByOrderId(String orderId);

    public List<OrderTrackingRecord> findCompletedByOrderProductId(String orderProductId,String creator);

    public List<PieceProductionRecordVo> findPieceProductionDetailList(String orderProductId, String creator);

    public List<BizOrderProcessRecord> findListByOrderId(BizOrderProcessRecord bizOrderProcessRecord);

}
